package com.homework.controller;

import com.homework.entity.Appreciate;
import com.homework.service.AppreciateService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class AppreciateController {

    @Resource
    private AppreciateService appreciateService;

    @RequestMapping("/findAppreciate")
    public List<Appreciate> findAll(){
        return appreciateService.findAll();
    }
}
